package com.lsh.oms.api.service.order;

import com.lsh.base.common.model.CommonResult;

import java.util.List;
import java.util.Map;

/**
 * 订单创建RestService
 *
 * @author peter
 * @date 18/8/4
 */
public interface IOrderCreateRestService {

    /**
     * 取消
     *
     * @param orderCode
     * @return
     */
    CommonResult<String> cancel(Long orderCode);

    /**
     * 确认
     *
     * @param codes
     * @return
     */
    CommonResult<Map<Long, Integer>> confirm(List<Long> codes);

    /**
     * 取消po
     *
     * @param orderCode
     * @return
     */
    CommonResult<String> cancelPoOrder(Long orderCode);

}
